package RMI;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Chat extends Remote {
	
	
    String sendMessage(String s) throws RemoteException;
    
    String reviveMessage() throws RemoteException;
    
    void fireMessageEvent()throws RemoteException;
    
    void addMessageEventListeners(MessageEventListeners l) throws RemoteException;
    
    void removeMessageEventListeners(MessageEventListeners l) throws RemoteException;
    
}